package com.example.springLearning.part6.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class FixedLightMgrService2 {

    @Autowired
    private LightService lightService;

//    public FixedLightMgrService2() {
//        lightService.check();
//    }

    @PostConstruct
    public void init() {
        lightService.check();
    }
}
